package com.igeekhome.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DOrderNumberListExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DOrderNumberListExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdIsNull() {
            addCriterion("parent_network_id is null");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdIsNotNull() {
            addCriterion("parent_network_id is not null");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdEqualTo(Integer value) {
            addCriterion("parent_network_id =", value, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdNotEqualTo(Integer value) {
            addCriterion("parent_network_id <>", value, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdGreaterThan(Integer value) {
            addCriterion("parent_network_id >", value, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("parent_network_id >=", value, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdLessThan(Integer value) {
            addCriterion("parent_network_id <", value, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdLessThanOrEqualTo(Integer value) {
            addCriterion("parent_network_id <=", value, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdIn(List<Integer> values) {
            addCriterion("parent_network_id in", values, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdNotIn(List<Integer> values) {
            addCriterion("parent_network_id not in", values, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdBetween(Integer value1, Integer value2) {
            addCriterion("parent_network_id between", value1, value2, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andParentNetworkIdNotBetween(Integer value1, Integer value2) {
            addCriterion("parent_network_id not between", value1, value2, "parentNetworkId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdIsNull() {
            addCriterion("start_odd_id is null");
            return (Criteria) this;
        }

        public Criteria andStartOddIdIsNotNull() {
            addCriterion("start_odd_id is not null");
            return (Criteria) this;
        }

        public Criteria andStartOddIdEqualTo(Long value) {
            addCriterion("start_odd_id =", value, "startOddId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdNotEqualTo(Long value) {
            addCriterion("start_odd_id <>", value, "startOddId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdGreaterThan(Long value) {
            addCriterion("start_odd_id >", value, "startOddId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdGreaterThanOrEqualTo(Long value) {
            addCriterion("start_odd_id >=", value, "startOddId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdLessThan(Long value) {
            addCriterion("start_odd_id <", value, "startOddId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdLessThanOrEqualTo(Long value) {
            addCriterion("start_odd_id <=", value, "startOddId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdIn(List<Long> values) {
            addCriterion("start_odd_id in", values, "startOddId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdNotIn(List<Long> values) {
            addCriterion("start_odd_id not in", values, "startOddId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdBetween(Long value1, Long value2) {
            addCriterion("start_odd_id between", value1, value2, "startOddId");
            return (Criteria) this;
        }

        public Criteria andStartOddIdNotBetween(Long value1, Long value2) {
            addCriterion("start_odd_id not between", value1, value2, "startOddId");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberIsNull() {
            addCriterion("grant_order_number is null");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberIsNotNull() {
            addCriterion("grant_order_number is not null");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberEqualTo(Integer value) {
            addCriterion("grant_order_number =", value, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberNotEqualTo(Integer value) {
            addCriterion("grant_order_number <>", value, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberGreaterThan(Integer value) {
            addCriterion("grant_order_number >", value, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("grant_order_number >=", value, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberLessThan(Integer value) {
            addCriterion("grant_order_number <", value, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberLessThanOrEqualTo(Integer value) {
            addCriterion("grant_order_number <=", value, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberIn(List<Integer> values) {
            addCriterion("grant_order_number in", values, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberNotIn(List<Integer> values) {
            addCriterion("grant_order_number not in", values, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberBetween(Integer value1, Integer value2) {
            addCriterion("grant_order_number between", value1, value2, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andGrantOrderNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("grant_order_number not between", value1, value2, "grantOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberIsNull() {
            addCriterion("use_max_order_number is null");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberIsNotNull() {
            addCriterion("use_max_order_number is not null");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberEqualTo(Long value) {
            addCriterion("use_max_order_number =", value, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberNotEqualTo(Long value) {
            addCriterion("use_max_order_number <>", value, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberGreaterThan(Long value) {
            addCriterion("use_max_order_number >", value, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberGreaterThanOrEqualTo(Long value) {
            addCriterion("use_max_order_number >=", value, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberLessThan(Long value) {
            addCriterion("use_max_order_number <", value, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberLessThanOrEqualTo(Long value) {
            addCriterion("use_max_order_number <=", value, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberIn(List<Long> values) {
            addCriterion("use_max_order_number in", values, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberNotIn(List<Long> values) {
            addCriterion("use_max_order_number not in", values, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberBetween(Long value1, Long value2) {
            addCriterion("use_max_order_number between", value1, value2, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andUseMaxOrderNumberNotBetween(Long value1, Long value2) {
            addCriterion("use_max_order_number not between", value1, value2, "useMaxOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberIsNull() {
            addCriterion("end_order_number is null");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberIsNotNull() {
            addCriterion("end_order_number is not null");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberEqualTo(Long value) {
            addCriterion("end_order_number =", value, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberNotEqualTo(Long value) {
            addCriterion("end_order_number <>", value, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberGreaterThan(Long value) {
            addCriterion("end_order_number >", value, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberGreaterThanOrEqualTo(Long value) {
            addCriterion("end_order_number >=", value, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberLessThan(Long value) {
            addCriterion("end_order_number <", value, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberLessThanOrEqualTo(Long value) {
            addCriterion("end_order_number <=", value, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberIn(List<Long> values) {
            addCriterion("end_order_number in", values, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberNotIn(List<Long> values) {
            addCriterion("end_order_number not in", values, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberBetween(Long value1, Long value2) {
            addCriterion("end_order_number between", value1, value2, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andEndOrderNumberNotBetween(Long value1, Long value2) {
            addCriterion("end_order_number not between", value1, value2, "endOrderNumber");
            return (Criteria) this;
        }

        public Criteria andServiceConditionIsNull() {
            addCriterion("service_condition is null");
            return (Criteria) this;
        }

        public Criteria andServiceConditionIsNotNull() {
            addCriterion("service_condition is not null");
            return (Criteria) this;
        }

        public Criteria andServiceConditionEqualTo(Integer value) {
            addCriterion("service_condition =", value, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andServiceConditionNotEqualTo(Integer value) {
            addCriterion("service_condition <>", value, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andServiceConditionGreaterThan(Integer value) {
            addCriterion("service_condition >", value, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andServiceConditionGreaterThanOrEqualTo(Integer value) {
            addCriterion("service_condition >=", value, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andServiceConditionLessThan(Integer value) {
            addCriterion("service_condition <", value, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andServiceConditionLessThanOrEqualTo(Integer value) {
            addCriterion("service_condition <=", value, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andServiceConditionIn(List<Integer> values) {
            addCriterion("service_condition in", values, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andServiceConditionNotIn(List<Integer> values) {
            addCriterion("service_condition not in", values, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andServiceConditionBetween(Integer value1, Integer value2) {
            addCriterion("service_condition between", value1, value2, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andServiceConditionNotBetween(Integer value1, Integer value2) {
            addCriterion("service_condition not between", value1, value2, "serviceCondition");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}